<%= render :partial=>"filter_tab" %>

<table class="lister">
<thead>
<tr>
<td width="5%">Rank</td>
<td width="20%">Name</td>
<td width="25%">Win/Loss %</td>
<td width="50%">Next Bet</td>
</tr>
</thead>
<tbody>



<% @users.each_with_index do |user,index| %>
<% rank = index + 1 %>
<%= "<tr>" if (index % 1).zero? %>
<td class="boldfont" style="font-size:17px;" height=115px width="5%"> <%= rank  %> </td>
<td width="20%">
<p><%= fb_profile_pic user %></p>
<p><%= fb_name user %></p>
</td>
<td width="25%"> <%= user.win_percentage %>%</td>
<td>
<p>Current Bet</p>
<p>Challenge User</p>
</td>
<%= "</tr>" if (rank % 1).zero? %>
<% end %>

<% unless (@users.size % 1).zero? %>
<td colspan="3" width="50%"></td></tr>
<% end %>

</tbody>
</table>

<%= render :partial=>"filter" %>
<br/><center><hr width="25%" size="0.5px" color="#a7a7a7"></center><br/><br/>

<%= render :partial=>"invite_leaderboards" %>